package com.qf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author MI
 * @ClassName GoodsApp.java
 * @createTime 2021年12月10日 13:40:00
 */
@SpringBootApplication
//注册与发现功能
@EnableDiscoveryClient
public class GoodsApp {
    public static void main(String[] args) {
        SpringApplication.run(GoodsApp.class, args);
    }

    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
   /* @Bean
    public IClientConfig iClientConfig() {
        return new DefaultClientConfigImpl();
    }*/

}
